home *** CD-ROM | disk | FTP | other *** search
- //
- // Description: DLL initialization
- //
- // ---------------------------------------------------------------------
- // Windows header files
-
- #include <windows.h>
- #include <windowsx.h>
-
- // Compiler header files
- #include <string.h>
-
- // Application header files
- #include "datahp.h"
-
- // Local data
- static HINSTANCE hInstThisMod ;
-
- // EJECT PAGE
- /*
- ********************************************************************************
- **
- ** Name: LibMain()
- **
- ** Description:
- **
- ** DLL Initialization.
- **
- */
- int FAR PASCAL LibMain( HINSTANCE hInstance
- , WORD wDataSeg
- , WORD wHeapSize
- , LPSTR lpszCmdLine
- )
- {
- // perform common initialization
- if ( wHeapSize > 0)
- UnlockData( 0) ;
- hInstThisMod = hInstance ; // save instance handle
-
- // successful return
- return 1 ;
- }
-
- // EJECT PAGE
- /*
- ********************************************************************************
- **
- ** Name: GetInstOfThisMod()
- **
- ** Description:
- **
- ** Returns HINSTANCE of this DLL.
- **
- ********************************************************************************
- */
- HINSTANCE FAR GetInstOfThisMod()
- {
- return hInstThisMod ;
- }
-